<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="referrer" content="never">

    <link rel="stylesheet" href="./css/base.css">
    <script src="./js/common.js"></script>
    <script src="datas/films.js"></script>
    <title>电影分类</title>
    <script src="../js/vue.js"></script>
    <link rel="import" href="./components/TopBar.html">
    <link rel="import" href="./components/FilmItem.html">
    <link rel="import" href="./components/FilmList.html">
    <script src="./datas/films.js"></script>
</head>

<body>
    <!-- 项目容器 start-->
    <div class="app">
        <!-- 头部搜索框 start -->
        <top-bar></top-bar>
        <!-- 头部搜索框 end -->
        <!-- 首页正文 start -->
        <div class="content-box">
            <!-- 首页分类列表 start -->
            <div class="films-box">
                <div class="list-name">
                    <span>热门电影</span>
                </div>
                <!-- <div class="content-list">
                    <film-item v-for="(film, index) in films" :key="index" :film=" film "></film-item>
                </div> -->
                <film-list class="content-list" :list="films"></film-list>
            </div>
            <!-- 首页分类列表 end -->
        </div>
        <!-- 首页正文 end -->
    </div>
    <!-- 项目容器 end-->
</body>
<script>
    new Vue({
        el:'.app',
        data:{
            films:[]
        },
        mounted() {
            setTimeout(()=>{
                this.films = films.result
            },3000)
        },
    });
</script>
</html>